//
//  CollectionViewCell.m
//  footBoll
//
//  Created by cckv on 2017/10/10.
//  Copyright © 2017年 cckv. All rights reserved.
//

#import "CollectionViewCell.h"
#import "UIImage+expand.h"

@interface CollectionViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *imageV;

@end
@implementation CollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.layer.masksToBounds = YES;
    self.layer.borderColor = [UIColor grayColor].CGColor;
    self.layer.borderWidth = 1;
    self.layer.cornerRadius = 6;
}
-(void)setModel:(dataModel *)model
{
    _model = model;
    
    if (!model.pass) {
        self.imageV.image = [UIImage imageNamed:@"锁.png"];
    }else
    {
        self.imageV.image = [UIImage drawWithTopic:[NSString stringWithFormat:@"%d",model.levelIndex+1]];
        
    }
}

@end
